package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.WithdrawContractCreateValidate;
import com.mdd.admin.validate.WithdrawContractUpdateValidate;
import com.mdd.admin.validate.WithdrawContractSearchValidate;
import com.mdd.admin.vo.WithdrawContractListedVo;
import com.mdd.admin.vo.WithdrawContractDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 新建合同请款信息服务接口类
 * @author LikeAdmin
 */
public interface IWithdrawContractService {

    /**
     * 新建合同请款信息列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<WithdrawContractListedVo>
     */
    PageResult<WithdrawContractListedVo> list(PageValidate pageValidate, WithdrawContractSearchValidate searchValidate);

    /**
     * 新建合同请款信息详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return WithdrawContractDetailVo
     */
    WithdrawContractDetailVo detail(Integer id);

    /**
     * 新建合同请款信息新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(WithdrawContractCreateValidate createValidate);

    /**
     * 新建合同请款信息编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(WithdrawContractUpdateValidate updateValidate);

    /**
     * 新建合同请款信息删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
